<extend name="desktop_default/template/user/base_user" />
<block name="area_header">
    <link rel="stylesheet" href="__CSS__/user/aftersale_detail/style.css">
</block>

<block name="area_top">

</block>
<block name="user_top">

</block>
<block name="main_content">
    <div class="container">
        <div class="user-tab">
            <a class="selected" href="javascript:void(0);">售后详情</a>
        </div>
        <div class="content-mid">
            <eq name="sale_info.valid_status" value="0">
                <img src="__IMG__/user/aftersale_detail/progress2.png">
                <else/>
                <img src="__IMG__/user/aftersale_detail/progress3.png">
            </eq>
        </div>
        <div class="content-bottom">
            <div class="content-bottom-left">
                <div class="head-line">售后申请</div>
                <div class="detail-wrap">
                    <ul>
                        <switch name="sale_info.refund_type" >
                            <case value="0">
                                <li><span>售后类型：</span><span class="red">仅退款</span></li>
                                <li><span>退款金额：</span><span class="red">200.00元</span></li>
                                <li><span>退款原因：</span><span>假冒品牌</span></li>
                            </case>
                            <case value="1">
                                <li><span>售后类型：</span><span class="red">仅退货</span></li>
                                <li><span>退货原因：</span><span>假冒品牌</span></li>
                            </case>
                            <case value="2">
                                <li><span>售后类型：</span><span class="red">退货退款</span></li>
                                <li><span>退款金额：</span><span class="red">200.00元</span></li>
                                <li><span>售后原因：</span><span>假冒品牌</span></li>
                            </case>
                            <default />
                        </switch>
                        <li><span>售后编号：</span><span>{$sale_code}</span></li>
                        <li><span>申请时间：</span><span>{$sale_info.create_time|date='Y-m-d H:i:s',###}</span></li>
                    </ul>
                    <div class="item-wrap">
                        <volist name="item_info" id="vo">
                            <img src="{:C('PICTURE_REMOTE_URL')}{$vo.img}{&size=60}">
                            <div class="item-name">{$vo.name}</div>
                        </volist>
                    </div>
                    <ul>
                        <li><span>订单编号：</span><a class="blue" href="{:U('mengwu/user/order_detail',array('order_code'=>$order_info['order_code']))}">{$order_info.order_code}</a></li>
                        <li><span>成交时间：</span><span>{$order_info.createtime|date='Y-m-d H:i:s',###}</span></li>
                        <li><span>订单信息：</span><span></span></li>
                        <li><span>运费：</span><span>{$order_info.post_price}元</span></li>
                        <li><span>总计：</span><span>{$order_info.price}元</span></li>
                        <li><span>实付款：</span><span>{$order_info['price']-$order_info['discount_money']}元</span></li>
                    </ul>
                </div>
            </div>
            <div class="content-bottom-right">
                <switch name="sale_info.valid_status" >
                    <case value="0">
                        <div class="selled"><img src="__IMG__/user/aftersale_detail/success.png"><div class="big">审核中，请等待客服确认</div></div>
                    </case>
                    <case value="1">
                        <div class="selled"><img src="__IMG__/user/aftersale_detail/success.png"><div class="big">售后成功</div></div>
                        <div class="info">
                            <ul>
                                <li><span>售后成功时间：</span><span>{$sale_info.reply_time|date='Y-m-d H:i:s',###}</span></li>
                                <li><span>客服回复：</span><span>{$sale_info.reply_msg}</span></li>
                                <in name="sale_info.refund_type" vlaue="0,2">
                                    <li><span>退款金额：</span><span>{$sale_info.refund_money}</span></li>
                                </in>
                                <li><span>钱款去向：</span><span>已退回萌屋余额</span></li>
                            </ul>
                        </div>
                    </case>
                    <case value="1">
                        <div class="selled"><img src="__IMG__/user/aftersale_detail/error.png"><div class="big">售后失败，客服驳回申请</div></div>
                        <div class="info">
                            <ul>
                                <li><span>售后失败时间：</span><span>{$sale_info.reply_time|date='Y-m-d H:i:s',###}</span></li>
                                <li><span>失败原因：</span><span>{$sale_info.reply_msg}</span></li>
                            </ul>
                        </div>
                    </case>
                    <default />
                </switch>

            </div>
        </div>

    </div>
</block>
<block name="area_footer">

</block>
